import { createStore } from 'vuex'
import {LocalStoreageUtil} from '@/utils/LocalStoreage'
export default createStore({
  state: {
    user: LocalStoreageUtil.getValue("token") || {}
  },
  mutations: {
    GETUSERINFO(state, value){
      state.user = value;
      // 写入本地存储
     LocalStoreageUtil.set("token", value);
    }
  },
  actions: {
  },
  modules: {
  }
})
